package com.test.interceptor;

import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.MethodFilterInterceptor;
import com.test.listener.MyListener;

public class MyInterceptor3 extends MethodFilterInterceptor {

	/**
	 * 
	 */
	private static final long serialVersionUID = -7788776412490499376L;

	@Override
	protected String doIntercept(ActionInvocation invocation) throws Exception {

		invocation.addPreResultListener(new MyListener());
		
		System.out.println("my interceptor3");
		
		String result = invocation.invoke();
		
		System.out.println("after my interceptor3 finished");
		return result;
	}

}
